package com.cml.framework.component.token;

import com.auth0.jwt.JWTCreator;

public class JWTTokenGenerator implements ITokenGenerator<String> {
    private ITokenGenerator<String> tokenGenerator;
    private String key;

    public JWTTokenGenerator(ITokenGenerator<String> tokenGenerator, String key) {
        this.tokenGenerator = tokenGenerator;
        this.key = key;
    }

    public String generate() {
        String oriKey = tokenGenerator.generate();
        return oriKey;
    }
}
